package com.inspur.cmis.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inspur.cmis.mapper.MgrLevelMapper;
import com.inspur.cmis.mapper.MgrrprMapper;
import com.inspur.cmis.pojo.MgrLevelAffirm;
import com.inspur.cmis.service.MgrLevelService;
@Service("mgrLevelService")
public class MgrLevelServiceImpl implements MgrLevelService {
	@Autowired
	private MgrLevelMapper mgrLevelMapper;
	@Override
	public void levelAdd(MgrLevelAffirm a) {
		// TODO Auto-generated method stub
		mgrLevelMapper.levelAdd(a);
	}
	@Override
	public List<MgrLevelAffirm> getlevelList(HashMap<String, Object> map) {
		// TODO Auto-generated method stub
		return mgrLevelMapper.getlevelList(map);
	}
	@Override
	public void deletelevel(int[] ids) {
		
		mgrLevelMapper.deletelevel(ids);
		
	}
	@Override
	public List<MgrLevelAffirm> getLevelByKey(String key) {
		// TODO Auto-generated method stub
		 for(MgrLevelAffirm str:mgrLevelMapper.getLevelByKey(key))
         {System.out.println("str.getHolddate()66666666666666666"+str.getHolddate());}
		return mgrLevelMapper.getLevelByKey(key);
	}
	@Override
	public void levelupdate(MgrLevelAffirm m) {
		// TODO Auto-generated method stub
		mgrLevelMapper.levelupdate(m);
	}

}
